package com.cx.mapper;

import com.cx.pojo.GroupSponsor;
import com.cx.pojo.GroupSponsorExample;
import com.cx.vo.GroupListVO;
import com.cx.vo.MyGroupInfoVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GroupSponsorMapper {
    int countByExample(GroupSponsorExample example);

    int deleteByExample(GroupSponsorExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(GroupSponsor record);

    int insertSelective(GroupSponsor record);

    List<GroupSponsor> selectByExample(GroupSponsorExample example);

    GroupSponsor selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") GroupSponsor record, @Param("example") GroupSponsorExample example);

    int updateByExample(@Param("record") GroupSponsor record, @Param("example") GroupSponsorExample example);

    int updateByPrimaryKeySelective(GroupSponsor record);

    int updateByPrimaryKey(GroupSponsor record);

    List<GroupListVO> selectGroupByGroupGoodId(Integer groupGoodId);

    Integer updateJoinNum(Integer id);

    Integer failAndUpdateStatus(Integer groupSponsorId);

    Integer successAndUpdateStatus(Integer groupSponsorId);

    List<MyGroupInfoVO> selectMyGroupInfo(Integer userId,Integer status);

}